package com.le.tester.imooc.oldfairy.coding.proxy;

/**
 * createTime：2023/5/18 16:19
 * description：
 */
public class TimeUsageAspect implements Aspect {
    long start;

    @Override
    public void before() {
        start = System.currentTimeMillis();
    }

    @Override
    public void after() {
        long usage = System.currentTimeMillis() - start;
        System.out.format("time usage : %dms\n", usage);

    }
}
